package com.hyjoy.dao;

import com.hyjoy.entity.Order;
import com.hyjoy.entity.OrderItem;
import com.hyjoy.entity.PageBean;

import java.util.List;

/**
 *
 */
public interface OrderDao {

    void save(Order order) throws Exception;

    void saveItem(OrderItem oi) throws Exception;

    int getTotalRecord(String uid) throws Exception;

    List<Order> findMyOrdersByPage(PageBean<Order> pb, String uid) throws Exception;

    Order getById(String oid) throws Exception;

    void update(Order order) throws Exception;

    List<Order> findAllByState(String state) throws Exception;

}
